﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace WSBackup
{
    public class WSArchiveConfig
    {
        public string Name;
        public string SrcPath;
        public string DestPath;

        [XmlArray("Extensions")]
        public List<string> Extensions = null;
        public ExcludeType ExcludeType = ExcludeType.All;
        public FileSelectionMethod FileSelectionMethod = FileSelectionMethod.Newer;
        public bool CleareArchiveFlag = true;

        public override string ToString()
        {
            if (String.IsNullOrWhiteSpace(this.Name))
                return this.SrcPath;
            return this.Name;
        }
    }
}
